package nodes.command;

import java.awt.Point;
import java.util.List;
import parser.ParserException;
import model.Model;
import nodes.AbstractNode;
import nodes.ConstantNode;


/**
 * Returns heading the first active turtle should be facing to point from its
 * current position to the given position
 */
public class TowardsC extends AbstractCommand
{
    public AbstractNode evaluate (List<AbstractNode> myArguments, Model model)
    {
        if (myArguments.size() != Integer.parseInt(resources.getString("towards")))
        {
            throw ParserException.BAD_ARGUMENTS;
        }

        Point currentLocation = model.getActiveTurtles().get(0).getLocation();
        int desiredX = myArguments.get(0).evaluate().getValue();
        int desiredY = myArguments.get(1).evaluate().getValue();
        Point desiredPoint = new Point((int) desiredX, (int) desiredY);

        
        return new ConstantNode(7);
    }
}
